

function test(request, response) {
    response.writeHead(200, {'Content-Type': 'text/html'});
    response.write("Hello world ! ");
    response.end();
}

function json(request, response) {
    response.writeHead(200, {'Content-Type': 'text/html'});
    response.write("Hello world ! ");
    response.end();
}

function start(request, response){   
     console.log("Request handler 'start' was called.");   
        
     function sleep(milliSeconds){   
         var startTime=new Date().getTime();   
         while(new Date().getTime()<startTime+milliSeconds);   
     }   
     sleep(10000);   
     return "Hello Start";   
 }   
 function upload(request, response){   
     console.log("Request handler 'upload' was called.");   
     return "Hello Upload";   
 }   
 
 exports.test=test;   
 exports.start=start;   
 exports.upload=upload;